<?php

/**
 * Logs form base class.
 *
 * @package    tercermilenio
 * @subpackage form
 * @author     Your name here
 */
class BaseLogsForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'log_id'           => new sfWidgetFormInputHidden(),
      'log_fecha_login'  => new sfWidgetFormDateTime(),
      'log_fecha_logout' => new sfWidgetFormDateTime(),
      'log_usuario'      => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'log_id'           => new sfValidatorPropelChoice(array('model' => 'Logs', 'column' => 'log_id', 'required' => false)),
      'log_fecha_login'  => new sfValidatorDateTime(array('required' => false)),
      'log_fecha_logout' => new sfValidatorDateTime(array('required' => false)),
      'log_usuario'      => new sfValidatorInteger(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('logs[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Logs';
  }


}
